
/**
 * Copyright 2009 cestum.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
package org.waveprotocol.wave.model.id {
/**
 * Constants useful for the context of ids.
 * Same as that of wave-protocol
 *
 */
public class IdConstants {
	/** Conventional separator for tokens in an id. */
	public static var TOKEN_SEPARATOR:String= '+';
	
	/** Scheme for wave and wavelet URIs. */
	public static var WAVE_URI_SCHEME:String= "wave";
	
	/** Prefix for conversational wave ids. */
	public static var WAVE_PREFIX:String= "w";
	
	/** Prefix for profile wave ids. */
	public static var PROFILE_WAVE_PREFIX:String= "prof";
	
	/** Prefix for conversational wavelet ids. */
	public static var CONVERSATION_WAVELET_PREFIX:String= "conv";
	
	/** Prefix for user-data wavelet ids. */
	public static var USER_DATA_WAVELET_PREFIX:String= "user";
	
	/** Prefix for blip document ids. */
	public static var BLIP_PREFIX:String= "b";
	
	/** Name of the data document that contains tags information. */
	public static var TAGS_DOC_ID:String= "tags";
	
	/** Prefix for ghost blip document ids. Ghost blips aren't rendered. */
	public static var GHOST_BLIP_PREFIX:String= "g";
	
	/** Conventional conversation root wavelet id. */
	public static var CONVERSATION_ROOT_WAVELET:String=
		CONVERSATION_WAVELET_PREFIX + TOKEN_SEPARATOR + "root";
	
	/** Prefix of the name of the attachment metadata data document. */
	public static var ATTACHMENT_METADATA_PREFIX:String= "attach";
	
	/** Old metadata document id. TODO: remove. */
	public static var OLD_METADATA_DOC_ID:String= "m/metadata";
}
}